//
//  MCustomButton.m
//  DiDiHousekeeping
//
//  Created by Mask魏 on 14/11/27.
//  Copyright (c) 2014年 Mstarc. All rights reserved.
//

#import "MCustomButton.h"

@implementation MCustomButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    return _imageRect;
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return _titleRect;
}

- (void)setCornerRadiusForMain{
    self.layer.masksToBounds=YES;
    self.layer.cornerRadius=5;
}


@end
